package com.decent.web.system.controller;

import com.decent.common.bo.MessageBean;
import com.decent.web.system.service.SystemClassifyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * 系统类别管理接口
 * @author: decent Gjh
 * @date: 2022/10/25/18:33
 * @description:
 */
@RequestMapping("classify")
@RestController
@Slf4j
@CrossOrigin
public class SystemClassifyController {
    private final SystemClassifyService classifyService;

    public SystemClassifyController(SystemClassifyService classifyService) {
        this.classifyService = classifyService;
    }

    /**
     * 获取所有可用分类
     * args：
     *   id int 分类id
     * @return 是否成功
     */
    @GetMapping
    public MessageBean selectClassify(){
        return classifyService.selectClassify();
    }
}
